<%@ page import="cn.kgc.pojo.Users" %>
<%@ page import="cn.kgc.util.Constants" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Users users = null;
    if (session.getAttribute("users") == null){
        response.sendRedirect("login.jsp");
    }else {
        users = (Users)session.getAttribute("users");
%>
欢迎你：<%=users.getUserName()%><br/>
目前在线人数：<%=Constants.USER_COUNT%>
<a href="loginOut.jsp">离开</a>
<%}%>
</body>
</html>
